package ru.susu.algebra.jtex;
/**
 * @author akargapolov
 * @since: 18.08.2010
 */
public class StringTexElement implements ITexElement
{
	private String _content;

	private StringTexElement(String content)
	{
		_content = content;
	}

	@Override
	public String generateContent()
	{
		return _content;
	}

	public static StringTexElement text(String content)
	{
		return new StringTexElement(content);
	}

	public static StringTexElement comment(String content)
	{
		return new StringTexElement("\n%" + content + "\n");
	}

	public static String NEW_LINE = "\n";
	public static String NEW_LINE_DOUBLE = "\n\n";

	public static StringTexElement newLine()
	{
		return new StringTexElement(NEW_LINE);
	}

	public static StringTexElement newLineDouble()
	{
		return new StringTexElement(NEW_LINE_DOUBLE);
	}

}
